var webpack = require('webpack');

var webpackConfig = {
    entry: {
        'vendors': ['vue','mint-ui','element-ui','es6-promise','isomorphic-fetch']
    },
    output: {
        path: './public/mobile/vendors/',
        filename: '[name].config.dll.js',
        library: '[name]'
    },
    module: {
        loaders: [
            {
                test: /\.js$/,
                exclude: /node_modules/,
                loader: 'babel'
            },
            {
                test: /\.css$/,
                //exclude: /node_modules/,
                loaders: "style!css"
            }
        ]
    },
    plugins: [
        new webpack.DllPlugin({
            path: './public/mobile/vendors/vendors_manifest.json',
            name: '[name]',
            context: __dirname
        })
    ]
};
module.exports = webpackConfig;
